import request from "@/utils/request";

export const getCompanyList = params => {
    return request({
      url: '/company/list_admin',  
      params
    })
} 
export const getCompanyDetail = params => {
  return request({
    url: '/company/detail_admin',  
    params
  })
} 

export const addCompany = data => {
  return request({
    url: '/company/add', 
    method: 'POST',
    data
  })
} 
export const editCompany = data => {
  return request({
    url: '/company/edit', 
    method: 'POST',
    data
  })
} 
export const deleteCompany = data => {
    return request({
      url: '/company/delete', 
      method: 'POST',
      data
    })
  } 